import { createStore } from 'vuex'

const moduleA = {
    state: () => ({
        loginType:false,
    }),
    mutations: {
        userStatus(state, flag){
            state.loginType = flag;
        },
    },
    actions: {
        setUser({commit}, flag){
            commit("userStatus", flag);
        },
    },
    getters: {
        loginType: state => state.loginType,
    }
}

const store = createStore({
    modules: {
        a: moduleA
    }

})

export default store;